/*
* 菜单
*/
.el-submenu__title .svg-icon {
  margin-right: 20px;
}
.el-submenu .el-menu-item {
  background-color: #f2f2f2;
  color: #999;
  &::before {
    display: inline-block;
    content: "";
    width: 3px;
    height: 3px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 50%;
    background-color: #999999;
  }
}
.el-submenu > .el-submenu__title.is-active,
.el-submenu .el-menu-item.is-active {
  background-color: #2993ff;
  color: #ffffff;
  &::before {
    background-color: #ffffff;
  }
}
// menu hover
.el-submenu__title {
  position: relative;
  &:hover {
    background-color: #ffffff;
    &::before {
      display: inline-block;
      content: "";
      width: 5px;
      height: 100%;
      background-color: #2993ff;
      position: absolute;
      left: 0;
      z-index: 3;
    }
  }
}

/*
* 按钮
*/
.el-button--success,
.el-button--success:hover,
.el-button--success:focus {
  background-color: $success-color;
  border-color: $success-color;
}
.el-button--primary,
.el-button--primary:hover,
.el-button--primary:focus {
  background-color: $mainBlue;
  border-color: $mainBlue;
}
.el-button--danger,
.el-button--danger:hover,
.el-button--danger:focus {
  background-color: $danger-color;
  border-color: $danger-color;
}
.el-button--warning,
.el-button--warning:hover,
.el-button--warning:focus {
  background-color: $warn-color;
  border-color: $warn-color;
}
.el-button:hover {
  opacity: 0.8;
}
.el-button--mini {
  padding: 7px 8px;
}

/*
* 表格
*/
.el-table {
  border-left: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  border-top: 1px solid #e6e6e6;
  color: #666666;
  thead {
    font-size: 16px;
    color: #333333;
  }
  th > .cell {
    font-weight: normal;
  }
  td,
  th.is-leaf {
    border-bottom: 1px solid #e6e6e6;
  }
  th {
    padding: 8px 0;
    background-color: #f2f2f2;
  }
  td {
    padding: 8px 0;
  }
  .cell {
    .el-input .el-input__inner {
      text-align: center;
      height: 30px;
      line-height: 30px;
    }
    .el-tag {
      height: 30px;
      line-height: 28px;
    }
  }
  .el-table__expand-icon .el-icon-arrow-right {
    font-size: 20px;
    &:before {
      content: "\e791";
    }
  }
}

/*
* 表单
*/
.el-select {
  width: 300px;
}
.el-textarea {
  width: 300px;
}
.el-form {
  .el-input {
    width: 300px;
  }
  .el-input-number,
  .el-select {
    .el-input {
      width: 100%;
    }
  }
}
.el-form-item {
  margin-bottom: 15px;
  &.is-error {
    margin-bottom: 22px;
  }
}

/*
* input
*/
.el-input.is-active .el-input__inner,
.el-input__inner:focus {
  border-color: $mainBlue;
}
.el-input.is-disabled .el-input__inner {
  color: #333333;
}

/*
* 文件上传
*/
.el-upload__tip {
  color: #999999;
  line-height: 22px;
}

/*
* 分页
*/
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev {
  padding-left: 12px;
  padding-right: 12px;
}
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
  background: #ffffff;
  border: 1px solid #eeeeee;
  color: #333333;
  font-size: 14px;
  font-weight: normal;
}
.el-pagination button,
.el-pagination span:not([class*="suffix"]) {
  font-size: 14px;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
  color: $mainBlue;
  background-color: #eeeeee;
}
.el-pagination.is-background .btn-next.disabled,
.el-pagination.is-background .btn-next:disabled,
.el-pagination.is-background .btn-prev.disabled,
.el-pagination.is-background .btn-prev:disabled,
.el-pagination.is-background .el-pager li.disabled {
  span {
    color: #bbbbbb;
  }
}
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $mainBlue;
  &:hover {
    color: #fff;
  }
}
.el-pagination__sizes .el-input .el-input__inner:hover {
  border-color: $mainBlue;
}
.el-pagination .el-select {
  width: auto;
}

/*
* 文字链接
*/
.el-link.el-link--primary {
  color: $mainBlue;
}

/*
* 对话框
*/
.el-dialog__header {
  display: flex;
  padding: 15px 25px;
  background-color: #f5f5f5;
}
.el-dialog__headerbtn {
  top: 15px;
}
.el-dialog__footer {
  padding: 10px 20px;
  text-align: center;
  border-top: 1px solid #eeeeee;
}
.el-dialog__body {
  padding: 10px 15px;
}
.el-dialog__title {
  font-size: 16px;
  color: #333333;
  line-height: 18px;
}

/*
* 消息窗
*/
.el-message-box {
  border-radius: 2px;
  .el-message-box__title {
    color: #333333;
    span {
      font-size: 16px;
    }
  }
  .el-message-box__btns {
    padding: 10px 20px 0;
    text-align: center;
    border-top: 1px solid #eeeeee;
  }
  .el-message-box__header {
    padding: 15px 25px 15px;
    background-color: #f5f5f5;
  }
  .el-message-box__message p {
    text-align: center;
    margin: 15px 0;
  }
}

/*
* tab标签页
*/
.el-tabs__item.is-active {
  color: $mainBlue;
  font-weight: bold;
}
.el-tabs__active-bar {
  background-color: $mainBlue;
}

/*
* image
*/
.image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 30px;
  background-color: $gray-bg;
}

/*
* 图片预览
*/
.el-image-viewer__btn .el-icon-circle-close {
  color: #ffffff;
}

/*
* 多选下拉框
*/
.vue-treeselect {
  width: 300px;
}
.vue-treeselect__label {
  text-align: left;
}

/*
* 面包屑
*/
.el-breadcrumb__inner a:hover,
.el-breadcrumb__inner.is-link:hover {
  color: $mainBlue;
}
